package com.mym;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/16 15:42
 * @description
 */
public class Test5 {
    public static void main(String[] args) {

        System.out.println(method(9));

    }
    public static int method(int num){
        if (num==1){
            return 1;
        }if (num==2) {
            return 1;
        }
        return method(num-1)+method(num-2);

    }
}

